//
//  TestView.swift
//  ModuleA
//
//  Created by zk_01 on 2022/4/7.
//

import UIKit
import SnapKit

public class TestView: UIView {

    override init(frame: CGRect) {
        super.init(frame: frame)
        let subv = UIView()
        subv.backgroundColor = .red
        subv.snp.makeConstraints { make in
            make.center.equalToSuperview()
            make.height.width.equalToSuperview().multipliedBy(0.51)
        }
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    
    /*
    // Only override draw() if you perform custom drawing.
    // An empty implementation adversely affects performance during animation.
    override func draw(_ rect: CGRect) {
        // Drawing code
    }
    */

}
